﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ITAP.ContourBuilder.GUI
{
    public partial class FormContainerParameters : Form
    {
        public bool InvertContainer
        {
            get
            {
                return checkBoxInvert.Checked;
            }
            set
            {
                checkBoxInvert.Checked = value;
            }
        }

        public float LeftIndent
        {
            get
            {
                return (float)numericUpDownLeft.Value;
            }
            set
            {
                numericUpDownLeft.Value = (decimal)value;
            }
        }

        public float UpIndent
        {
            get
            {
                return (float)numericUpDownUp.Value;
            }
            set
            {
                numericUpDownUp.Value = (decimal)value;
            }
        }
        public float RightIndent
        {
            get
            {
                return (float)numericUpDownRight.Value;
            }
            set
            {
                numericUpDownRight.Value = (decimal)value;
            }
        }
        public float DownIndent
        {
            get
            {
                return (float)numericUpDownDown.Value;
            }
            set
            {
                numericUpDownDown.Value = (decimal)value;
            }
        }
        public FormContainerParameters()
        {
            InitializeComponent();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
